diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-02-18 22:03:55 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-02-18 22:03:55 +0700 |
| commit | 69f55de26319e570ce0a8c4dbe8a29cb0d0b51c5 (patch) | |
| tree | 742f6a7f11812b6e236c2cfb69f94aa1b53a49e5 /src/pages/shop/brands/[slug].jsx | |
| parent | 8c38ac6b55ce3aa15196364619f8f22053a00c48 (diff) | |
optimization
Diffstat (limited to 'src/pages/shop/brands/[slug].jsx')
| -rw-r--r-- | src/pages/shop/brands/[slug].jsx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/pages/shop/brands/[slug].jsx b/src/pages/shop/brands/[slug].jsx index 4965d4f7..da3ee84d 100644 --- a/src/pages/shop/brands/[slug].jsx +++ b/src/pages/shop/brands/[slug].jsx @@ -1,9 +1,11 @@ -import BasicLayout from "@/core/components/layouts/BasicLayout" +import dynamic from "next/dynamic" import { getIdFromSlug, getNameFromSlug } from "@/core/utils/slug" -import ProductSearch from "@/lib/product/components/ProductSearch" import { useRouter } from "next/router" import _ from "lodash" -import Brand from "@/lib/brand/components/Brand" + +const BasicLayout = dynamic(() => import("@/core/components/layouts/BasicLayout")) +const ProductSearch = dynamic(() => import("@/lib/product/components/ProductSearch")) +const Brand = dynamic(() => import("@/lib/brand/components/Brand")) export default function BrandDetail() { const router = useRouter() |
